package third;

public class MonthWorker extends Employee{
    double monthMoney;

    public MonthWorker(double monthMoney) {
        this.monthMoney = monthMoney;
    }

    public double earnings() {
        return monthMoney * 12;
    }

    public double getMonthMoney() {
        return monthMoney;
    }

    public void setMonthMoney(double monthMoney) {
        this.monthMoney = monthMoney;
    }
}
